package com.test;
import com.model.Student;
import com.model.Subject;

/**
 * 测试类
 * .TODO 测试用例
 */
public class SubjectTest {
    public static void  main(String[] args){
        Subject subject_1=new Subject("离散数学","1000",4);
        System.out.println(subject_1.info());

        Student stu_1=new Student("00001","Erik","男",22);
        //System.out.println(stu_1.info());

        System.out.println("=======================================================");
        System.out.println(stu_1.info(subject_1));

        System.out.println("=======================================================");
        Student stu_2=new Student("00002","Mozart","男",20,subject_1);
        System.out.println(stu_2.info());

        System.out.println("=======================================================");

        subject_1.addStudent(stu_1);
        subject_1.addStudent(stu_2);
        System.out.println("专业人数    "+subject_1.getStudentNum());


    }
}
